#include<bits/stdc++.h>
using namespace std;
int a[100005];
bool cmp(int a,int b){
    return a<b;
}
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(false);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    sort(a+1,a+n+1,cmp);
    int i=1,j=1;
    for(   ;j<=n;j++){
        if(a[j]<=a[i]){
            for(int k=j;k<=n;k++){
                if(a[k]>a[i]){
                    j=k;
                    break;
                }
            }
        }
        if(a[j]<=a[i]){
            break;
        }
        i++;
    }
    int ans=n+1-i;
    cout<<ans;
    return 0;
}
